﻿<!DOCTYPE html>
<html>
<head>
   <title>VIDriveSim RTDB reference</title>
   <meta name="generator" content="Help & Manual">
   <meta name="keywords" content="">
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
   <link type="text/css" href="default.css" rel="stylesheet">
   <link type="text/css" href="custom.css" rel="stylesheet">
   <script type="text/javascript" src="nsh.js"></script>
   
<!-- non-scrolling headers for CHM and browser-based help, local styles-->
<style TYPE="text/css" media="screen"> 
   <!-- 
   body {    
      margin:0; 
      padding:0; 
      overflow: auto; 
      background: #edede9; 
   } 
   #idheader { 
      width:100%; 
      height:auto; 
      padding: 0; 
      margin: 0;     
} 
    #idheaderbg  {
    background: #E40A00; 
}
#idheadernowrap  {
    white-space:nowrap; 
}
    ul {list-style-type: lower-roman}
   -->
   </style>
   
<style TYPE="text/css" MEDIA="print">
<!--
/* Hide navigation links and add space between header
     and text in the printed version. Not valid for eBooks. */
#idnav { display:none;	 }
.topichead { padding: 5px 5px 20px 5px; }
-->
</style>   
   <script type="text/javascript" src="jquery.js"></script>
   <script type="text/javascript" src="helpman_settings.js"></script>
   <script type="text/javascript" src="helpman_topicinit.js"></script>

   <script type="text/javascript">
     HMSyncTOC("index.html", "drvsim_vidrivesim_rtdb_reference.htm");
   </script>
   <script type="text/javascript" src="highlight.js"></script>
   <script type="text/javascript">
     $(document).ready(function(){highlight();});
   </script>
</head>
<body>

<!--ZOOMSTOP-->

<div id="idheader" >
<div id="idheaderbg">
<table width="100%" border="0" cellspacing="0" cellpadding="0" 
       style="margin: 0px; color: #D7D7D7;">

  <tr valign="middle">
    <td align="left" valign="middle" class="topichead">
    <!--<div id="idheadernowrap">-->
    <p class="crumbs" id="idnav"><b>Navigation:</b>&nbsp;
   
   VI-DriveSim 19.2 on Linux &gt; VI-DriveSim 19.2 Configuration &gt; <a href="drivesim_simulation_workbench_configura.htm">Simulation WorkBench configuration</a>&nbsp;&gt;</p>
      <h1 class="p_Heading1" style="page-break-after: avoid;"><span class="f_Heading1">VI-DriveSim 19 2 RTDB reference</span></h1>

    <!--</div>-->
    </td>
    <td align="right" width="180" valign="middle" class="topichead" id="idnav">
    <div id="idheadernowrap">
    <a href="javascript: print();"
    		onmouseover="document.images.prntr.src='print_a.png'" 
        onmouseout="document.images.prntr.src='print_n.png'"
        ><img name="prntr" border="0" alt="Print this Topic" title="Print this Topic" src="print_n.png"
        ></a>&nbsp;&nbsp;
     <a href="drvsim_inst_creating-a-project-with-prod_n.htm"
        onmouseover="document.images.prev.src='back_a.png'" 
        onmouseout="document.images.prev.src='back_n.png'"
        ><img name=prev src="back_n.png" border=0 alt="Previous page"
        ></a><a href="drivesim_simulation_workbench_configura.htm"
        onmouseover="document.images.main.src='top_a.png'" 
        onmouseout="document.images.main.src='top_n.png'"><img name=main src="top_n.png" border=0 alt="Return to chapter overview"
        ></a><a href="drvsim_inst_creating-a-test-with-simwb.htm"
        onmouseover="document.images.next.src='next_a.png'" 
        onmouseout="document.images.next.src='next_n.png'"><img name=next src="next_n.png" border=0 alt="Next page"
        ></a>
    </div>
    </td>
  </tr>
</table>
</div>

<!-- The following code displays Expand All/Collapse All links  below the header in topics containing toggles -->
  

</div>  



<div id="idcontent"><div id="innerdiv"> 
<!--ZOOMRESTART-->
<p class="p_Normal">All models in Simulation Test/Sessions communicate through the defined RTDB.</p>
<p class="p_Normal">To create a RTDB, follow this steps:</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 7px 0px 0px 48px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span class="f_NormalIndentParameters">Open SimWB, double click on the project in which you want to create the RTDB, then press the blue button highlighted in the image below and create an empty RTDB, by typing the name and pressing the </span><span class="f_NormalIndentParameters" style="font-style: italic;">Save</span><span class="f_NormalIndentParameters"> icon</span></p><p class="p_NormalIndentParameters" style="text-align: center;"><img alt="drvsim_create_RTDB_01" width="634" height="127" style="margin:0px auto 0px auto;width:634px;height:127px;border:none" src="drvsim_create_rtdb_01.png"/></p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 7px 0px 0px 48px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span class="f_NormalIndentParameters">Now open VI-DriveSim 19.2 interface and select the above project</span></p><p class="p_NormalIndentParameters" style="text-align: center;"><img alt="drvsim_create_RTDB_02" width="634" height="195" style="margin:0px auto 0px auto;width:634px;height:195px;border:none" src="drvsim_create_rtdb_02.png"/></p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 7px 0px 0px 48px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span class="f_NormalIndentParameters">Press the </span><span class="f_NormalIndentParameters" style="font-weight: bold;">RTDB tool</span><span class="f_NormalIndentParameters"> button; for each RTDB is possible to:</span></p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 72px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#9642;</span>'csv log' button: generate a custom signal list file to be used with iodb_csv</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 72px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#9642;</span>'check' button: verify if the corresponding RTDB has the minimum set of signals for &nbsp;VI-DriveSim 19.2</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 72px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#9642;</span>'update' button: adds the missing signals as above to the RTDB</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 72px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#9642;</span>'create' button: rewrites the RTDB with all and only the &nbsp;VI-DriveSim 19.2 required signals</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 72px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#9642;</span>'user sensor' button: extracts from the selected vicrt .xml model the user sensors channels, and can be selected to be added to the RTDB. Once present in RTDB, &nbsp;VI-DriveSim 19.2 will automatically update in realtime the value during simulation without further actions. This channels can only be added from this panel, to remove them use simwb.</p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 0px 0px 0px 72px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#9642;</span>'extra input' button: allows to add to the RTDB extra inputs channels to vicrt model. This channels can only be added from this panel, to remove them use simwb.</p><p class="p_Normal" style="text-align: center; margin: 0px 0px 0px 72px;"><img alt="drvsim_create_RTDB_03" width="634" height="475" style="margin:0px auto 0px auto;width:634px;height:475px;border:none" src="drvsim_create_rtdb_03.png"/></p>
<p class="p_Normal" style="text-align: center; margin: 0px 0px 0px 72px;">&nbsp;</p>
<p class="p_Normal">By pressing <span style="font-weight: bold;">update</span> all the missing channels (in this case all the channels, since the RTDB is empty) will be added to the RTDB.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">Now, load the RTDB in SimWB, save it and unload it again. <span style="text-decoration: underline;">This last step is necessary to finalize the creation of the RTDB</span>.</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">If you load again the RTDB, in Analog Points tab you can see that all the VI-CarRealTime channels and all the VI-DriveSim channels are in the RTDB. </p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal" style="text-align: center;"><img alt="drvsim_create_RTDB_04" width="634" height="163" style="margin:0px auto 0px auto;width:634px;height:163px;border:none" src="drvsim_create_rtdb_04.png"/></p>
<p class="p_Normal">Be aware that:</p>
<p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 7px 0px 0px 48px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span class="f_NormalIndentParameters" style="font-weight: bold;">The original items provided in the RTDB MUST NOT be removed</span></p><p style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 13px; margin: 7px 0px 0px 48px;"><span style="font-size:10pt; font-family: 'Arial Unicode MS','Lucida Sans Unicode','Arial';color:#000000;display:inline-block;width:13px;margin-left:-13px">&#8226;</span><span class="f_NormalIndentParameters" style="font-weight: bold;">Any number of custom items may be added to suite different needs </span></p><p class="p_Normal">&nbsp;</p>
<p class="p_Normal">VI-CarRealTime real time execution can be controlled and checked with the following RTDB items during a Simulation run:</p>
<p class="p_Normal">&nbsp;</p>
<div style="text-align: justify; text-indent: 0px; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;"><table style="width:100%; border:none; border-spacing:0px; border-collapse:collapse;">
<thead>
<tr style="text-align:left;vertical-align:top;">
<th style="vertical-align:middle; width:355px; height:32px; background-color:#99ccff; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt; font-weight: bold;">Name</span></p>
</th>
<th style="vertical-align:middle; width:91px; height:32px; background-color:#99ccff; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt; font-weight: bold;">module</span></p>
</th>
<th style="vertical-align:middle; width:231px; height:32px; background-color:#99ccff; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt; font-weight: bold;">Description</span></p>
</th>
<th style="vertical-align:middle; width:322px; height:32px; background-color:#99ccff; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt; font-weight: bold;">Value</span></p>
</th>
<th style="vertical-align:middle; width:112px; height:32px; background-color:#99ccff; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt; font-weight: bold;">Type</span></p>
</th>
</tr>
</thead>
<tbody>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:355px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.Control.VICRT_RESTORE_REQ</span></p>
</td>
<td style="vertical-align:middle; width:91px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">vicrt</span></p>
</td>
<td style="vertical-align:middle; width:231px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Request to restore the previous saved state </span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Trigger 0-&gt;1-&gt;0</span></p>
</td>
<td style="vertical-align:middle; width:112px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Read/write</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:355px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.Control.VICRT_RESTART_REQ</span></p>
</td>
<td style="vertical-align:middle; width:91px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">vicrt</span></p>
</td>
<td style="vertical-align:middle; width:231px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Request to start from the current state</span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Trigger 0-&gt;1-&gt;0</span></p>
</td>
<td style="vertical-align:middle; width:112px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Read/write</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:355px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.Control.TEST_STOP_REQ</span></p>
</td>
<td style="vertical-align:middle; width:91px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">vicrt</span></p>
</td>
<td style="vertical-align:middle; width:231px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Request to shutdown VI-DriveSim </span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Set 1 to have simworkbench session exit successfully</span></p>
</td>
<td style="vertical-align:middle; width:112px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Read/write</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:355px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.Control.VICRT_UPSHIFT_REQ</span></p>
</td>
<td style="vertical-align:middle; width:91px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">vicrt</span></p>
</td>
<td style="vertical-align:middle; width:231px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Gear shift up</span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Trigger 0-&gt;1-&gt;0</span></p>
</td>
<td style="vertical-align:middle; width:112px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Read/write</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:355px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.Control.VICRT_DOWNSHIFT_REQ</span></p>
</td>
<td style="vertical-align:middle; width:91px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">vicrt</span></p>
</td>
<td style="vertical-align:middle; width:231px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Gear shift down</span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Trigger 0-&gt;1-&gt;0</span></p>
</td>
<td style="vertical-align:middle; width:112px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">Read/write</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td rowspan="4" style="vertical-align:middle; width:355px; height:56px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Outputs.Vicrt.Status</span></p>
</td>
<td rowspan="4" style="vertical-align:middle; width:91px; height:56px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">vicrt</span></p>
</td>
<td rowspan="4" style="vertical-align:middle; width:231px; height:56px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">Vicrt solver status report</span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">0: undefined</span></p>
</td>
<td rowspan="4" style="vertical-align:middle; width:112px; height:56px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">Read only </span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">1:solver is running</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">2: solver finished the simulation and waits stop request</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">3: solver is paused</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td rowspan="2" style="vertical-align:middle; height:14px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.Control.CSVWRITE_FLAG</span></p>
</td>
<td rowspan="2" style="vertical-align:middle; height:14px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">iodb_csv</span></p>
</td>
<td rowspan="2" style="vertical-align:middle; height:14px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">toggles csv data writing</span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">0:no data is written, 1:data is written on file</span></p>
</td>
<td rowspan="2" style="vertical-align:middle; height:14px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">Read/Write</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">if circular buffer is enabled, it works as the trigger for file saving, after the file is saved it is set back to 0</span></p>
</td>
</tr>
<tr style="text-align:left;vertical-align:top;">
<td style="vertical-align:middle; width:355px; height:14px; padding:0px; border:solid thin #000000;"><p style="text-align: left; margin: 0px 0px 0px 21px;"><span style="font-size: 8pt; font-weight: bold;">VI_DriveSim.Inputs.VIGraphSim.CamerMOD</span></p>
</td>
<td style="vertical-align:middle; width:91px; height:14px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">iodb_udp</span></p>
</td>
<td style="vertical-align:middle; width:231px; height:14px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">toggles sending camera compensation data do VI-GraphSim</span></p>
</td>
<td style="vertical-align:middle; width:322px; height:56px; padding:0px; border:solid thin #000000;"><p style="text-align: center;"><span style="font-size: 8pt;">1:data is sent, 0: no data sent.</span></p>
</td>
<td style="vertical-align:middle; width:112px; height:14px; padding:0px; border:solid thin #000000;"><p class="p_Normal" style="text-align: center;"><span style="font-size: 8pt;">Read/Write</span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>
<p class="p_Normal">&nbsp;</p>

<!--ZOOMSTOP-->
</div></div>
<script type="text/javascript"> 
<!-- 
var lastSlashPos = document.URL.lastIndexOf("/") >
document.URL.lastIndexOf("\\") ? document.URL.lastIndexOf("/") :
document.URL.lastIndexOf("\\");
if( document.URL.substring( lastSlashPos + 1, lastSlashPos + 4
).toLowerCase() != "~hh" )
{
    nsrInit();
}
--> 
</script> 
</body>
</html>
